const querystring = require("querystring");
// let obj = querystring.parse('foo=bar&abc=xyz');
let str = querystring.stringify({foo:"bar",abc:"xyz"})
console.log(str);